package com.lysh.aliHttp.common.enums;

/**
 * @author liyishan
 * @date 2023/5/5 09:51
 * @apiNote
 */

public enum StorageClass {
    Standard("Standard"),
    IA("IA"),
    Archive("Archive"),
    Unknown("Unknown");

    private String storageClassString;

    private StorageClass(String storageClassString) {
        this.storageClassString = storageClassString;
    }

    public String toString() {
        return this.storageClassString;
    }

    public static StorageClass parse(String storageClassString) {
        StorageClass[] arr$ = values();
        int len$ = arr$.length;

        for(int i$ = 0; i$ < len$; ++i$) {
            StorageClass st = arr$[i$];
            if (st.toString().equals(storageClassString)) {
                return st;
            }
        }

        throw new IllegalArgumentException("Unable to parse " + storageClassString);
    }
}
